import request from '@/utils/request'

// 查询制绳报列表
export function listRope(query) {
  return request({
    url: '/mes/fb/rope/list',
    method: 'get',
    params: query
  })
}

// 查询制绳报详细
export function getRope(recordId) {
  return request({
    url: '/mes/fb/rope/' + recordId,
    method: 'get'
  })
}

// 新增制绳报
export function addRope(data) {
  return request({
    url: '/mes/fb/rope',
    method: 'post',
    data: data
  })
}

// 修改制绳报
export function updateRope(data) {
  return request({
    url: '/mes/fb/rope',
    method: 'put',
    data: data
  })
}

// 删除制绳报
export function delRope(recordId) {
  return request({
    url: '/mes/fb/rope/' + recordId,
    method: 'delete'
  })
}
